alias c="clear"
alias ls="lsd"
# alias tree="erdtree"
#alias s="neofetch | lolcat"
#alias s="fastfetch | lolcat"
alias s="fastfetch"
alias a="paru -S --needed"
#alias sc="paru -Scc --noconfirm"
alias r="paru -R --noconfirm"
alias fast="sudo reflector --info --verbose -c China -p https -f 5 -l 5 --sort rate --threads 100 --save /etc/pacman.d/mirrorlist"
# alias fast="reflector --verbose -c China --latest 15 --sort rate --threads 100 --save $HOME/mydotfiles/config/archconfig/pacman/mirrorlist"
#
# alias sc="sudo pacman -Qqdt | sudo pacman -Rns - && paru -Scc --noconfirm"
alias sc="sudo pacman -Rns $(pacman -Qtdq) --noconfirm && paru -Scc --noconfirm"
#alias u="fast && paru -Syyu --noconfirm"
alias u="paru -Syyu --noconfirm"

# alias lo="code ."
# alias lg="lazygit"
alias ga="git add ."
alias gm="git commit -m"
alias gp="git pull"
alias gP="git push"
alias gc="git clone --depth 1"
# alias dc="make && sudo make clean install"
# alias k="sudo systemctl start sddm"
# yarn
alias ni="pnpm i"
alias na="pnpm add"
alias np="pnpm preview"
alias nf="pnpm good"
alias nu="pnpm up -L"
alias nc="pnpm check"
alias cc="pnpm clean"
alias nv="pnpm dev"
alias nb="pnpm build"

#kubecolor

alias k="kubectl"
alias kubectl="kubecolor"
alias kd="kubectl describe pods"
alias kaf="kubectl apply -f"
alias kak="kubectl apply -k"
alias kdf="kubectl delete -f"
alias kgp="kubectl get pod"
alias kgpa="kubectl get pod -A"
alias kgs="kubectl get service"
alias kgd="kubectl get deployment"
alias kgi="kubectl get ingress"
alias kgc="kubectl get crds"
alias kpf="kubectl port-forward"

alias acn="acorn"

# openFunction

alias kgf="kubectl get function"
alias kgb="kubectl get builder"
alias kgksvc="kubectl get ksvc"

# rust
alias cn="cargo new"
alias cr="cargo run"
alias cu="cargo upgrade"
alias cb="cargo build --release"
# RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/sbin/mold" cargo build --release
alias cbw="cargo build --target wasm32-wasip2 --release"

# fleet 加速
# alias cr="fleet run"
# alias cb="fleet build --release"
# alias cbw="fleet build --target wasm32-wasi --release"

# Vlang
alias vn="v init"
alias vr="v run ."
alias vb="v -prod ."

# moonbitlang
alias mn="moon new"
# alias mr="moon fmt && moon run src/main"
alias mr="moon fmt && moon run cmd/main"
alias mb="moon build"
alias mbn="moon build --target native"
alias mbs="moon build --target js"
alias ma="moon add"
alias mi="moon install"
alias mu="moon update"
alias mc="moon clean"
alias mdoc="moon doc --serve"

# k8sgpt

# alias kg="k8sgpt -b localai -l Chinese"
alias kg="k8sgpt -l Chinese"
